#ifndef DEVICECOLUMNDIALOG_H
#define DEVICECOLUMNDIALOG_H
#include <QCheckBox>
#include "BaseDialog.h"

namespace Ui {
    class DeviceColumnDialog;
}

class DeviceColumnDialog : public BaseDialog {
    Q_OBJECT
public:
    DeviceColumnDialog(QWidget *parent = 0);
    ~DeviceColumnDialog();
    void Init();
    unsigned int GetValue() const {return m_uiValue;}
    void SetValue(unsigned int uiValue){m_uiValue = uiValue;}

    unsigned int GetListCount() const {return m_pListCbx.count();}

protected:
    void changeEvent(QEvent *e);

private:
    Ui::DeviceColumnDialog *ui;
    QList<QCheckBox*>   m_pListCbx;
    unsigned int        m_uiValue;

private slots:
    void on_pbnCancel_clicked();
    void on_pbnOK_clicked();
};

#endif // DEVICECOLUMNDIALOG_H
